import Https from "@/utils/Https";

export const queryPageDataReq = async (params) =>
  await Https.post("/staff/salaryset/salarySetList", params);
export const addItemReq = async (params) =>
  await Https.post("/staff/salarytype/addType", params);
export const updateItemReq = async (params) =>
  await Https.post("/staff/salaryset/addOrUpdateSalarySet", params, true);

export const deleteItemReq = async (params) =>
  await Https.post("/staff/salarytype/logicDeleteRoom", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/tables", params);

export const toggleStateReq = async (params) =>
  await Https.post("/staff/salarytype/updateStatus", params, true);

export const queryTypeTableReq = async (params) =>
  await Https.post("/tables/type", params);

export const querySalaryTypeListPageDataReq = async (params) =>
  await Https.post("/staff/salarytype/typeList", params);

export const exportReq = async (params) =>
  await Https.post("/staff/salaryset/export", params);
